/*dataSource {
    pooled = true
    driverClassName = "org.hsqldb.jdbcDriver"
    username = "sa"
    password = ""
}*/
/*
dataSource {
	dbCreate = "create-drop"
	url = "jdbc:mysql://localhost/gtesoreria"
	driverClassName = "com.mysql.jdbc.Driver"
	dialect = org.hibernate.dialect.MySQL5InnoDBDialect
	username = "root"
	password = "qwerty"
}
*/

dataSource {
	pooled = false
	dbCreate = "create-drop" // one of 'create', 'create-drop','update'
	url = "jdbc:postgresql://localhost:5432/gtesoreria"
	driverClassName = "org.postgresql.Driver"
	username = "postgres"
	password = "qwerty"
	dialect = net.sf.hibernate.dialect.PostgreSQLDialect // the difference is.
}

hibernate {
    cache.use_second_level_cache = true
    cache.use_query_cache = true
    cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider'
}
// environment specific settings
environments {
    development {
        dataSource {
            dbCreate = "update" // one of 'create', 'create-drop','update'
            //url = "jdbc:mysql://localhost/gtesoreria"
			//url = "jdbc:hsqldb:mem:devDB"
			url = "jdbc:postgresql://localhost:5432/gtesoreria"
			
			
			/*dbCreate = "update"
			url = "jdbc:postgresql://localhost:5432/gtesoreria"
			driverClassName = "org.postgresql.Driver"
			username = "postgres"
			password = "qwerty"
			dialect = net.sf.hibernate.dialect.PostgreSQLDialect // the difference is.*/
        }
    }
    loadPadron {
        dataSource {
            dbCreate = "create-drop" // one of 'create', 'create-drop','update'
            url = "jdbc:postgresql://localhost:5432/gtesoreria"
		    driverClassName = "org.postgresql.Driver"
			username = "postgres"
			password = "qwerty"
			dialect = net.sf.hibernate.dialect.PostgreSQLDialect // the difference is.
        }
    }
    production {
        dataSource {
            dbCreate = "update"
            url = "jdbc:postgresql://localhost:5432/gtesoreria"
		    driverClassName = "org.postgresql.Driver"
			username = "postgres"
			password = "qwerty"
			dialect = net.sf.hibernate.dialect.PostgreSQLDialect // the difference is.
        }
    }
}
